package com.moyu.user.service.permission;

import com.moyu.user.domain.permission.dto.PermissionQueryDTO;
import com.moyu.user.domain.permission.dto.PermissionSaveDTO;
import com.moyu.user.domain.permission.vo.PermissionVO;

import java.util.List;

/**
 * 角色服务层
 *
 * @Author 赵彦博
 * @Date 2024/12/27 15:31
 */
public interface IPermissionService {
    int add(PermissionSaveDTO permissionSaveDTO);

    int addPermissionWithRole(Long id, List<PermissionVO> permissions);

    int delete(Long id);

    List<PermissionVO> list(PermissionQueryDTO permissionQueryDTO);

    List<PermissionVO> listByRoleId(PermissionQueryDTO permissionQueryDTO);

    List<PermissionVO> listByRoleIdAll(Long id);
}
